package cn.iocoder.yudao.module.bpm.framework.flowable.core.magicApiConfig.dto;

import cn.iocoder.yudao.module.bpm.framework.flowable.core.candidate.BpmTaskCandidateStrategy;
import cn.iocoder.yudao.module.bpm.framework.flowable.core.enums.MagicApiConfigProcessInstanceEventEnum;
import cn.iocoder.yudao.module.bpm.framework.flowable.core.enums.MagicApiConfigTaskEventEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;
import java.util.Map;

/**
 * MagicApi 配置参数
 */
@Data
public class MagicApiConfigDto {

    /**
     * 事件类型
     * {@link MagicApiConfigProcessInstanceEventEnum} 流程
     * {@link MagicApiConfigTaskEventEnum} 任务
     */
    @Schema(description = "事件类型")
    private String event ;
    @Schema(description = "接口ID，用于前端回显")
    private String magicApiId ;
    @Schema(description = "接口的全路径【URL路径】")
    private String fullPath ;
    @Schema(description = "接口的全路径【文件夹路径】")
    private String fullDir ;
    @Schema(description = "接口类型【GET/POST...】")
    private String method ;
    @Schema(description = "接口参数")
    private Map<String, Object> fields ;

}
